<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>通讯录首页</title>
</head>
<body>

    <table border="1" width="60%" cellspacing="0">
        <thead>
            <tr><th>姓名</th><th>生日</th><th>电话</th><th>操作</th></tr>
        </thead>
        <tbody>
            <tr th:each="obj : ${pageObj.list}">
                <td th:text="${obj.name}"></td>
                <td th:text="${obj.birthday}"></td>
                <td th:text="${obj.phone}"></td>
                <td><a th:href="@{/link/del(id=${obj.id})}">删除</a>
                    <a th:href="@{/link/findById(id=${obj.id})}">修改</a></td>
            </tr>
        </tbody>
    </table>
    <div>
        <a style="margin-left: 15px" th:each="pg:${#numbers.sequence(1,pageObj.pages)}"
        th:text="${pg}+'页'" th:href="@{/link/findAll(pageNo=${pg})}"></a>
    </div>
    <a href="/html/add.html">添加</a>
</body>
</html>